﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Login.aspx.cs" Inherits="Login" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <h1>
        Welcome to Auction Market</h1>
    <form id="form1" runat="server">
    <div>
    
        <asp:Panel ID="pnlLogin" runat="server" Height="161px">
            <table>
                <tr>
                    <td>
                     <asp:Label ID="lblUserID" runat="server" Text="User ID :"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txtUserID" runat="server"></asp:TextBox>
                    </td>
                    <td>
                        <asp:RequiredFieldValidator ID="valUserID" runat="server" 
                            ErrorMessage="Please enter UserID" ControlToValidate="txtUserID" 
                            ForeColor="Red" SetFocusOnError="True"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                     <asp:Label ID="lblPassword" runat="server" Text="Password :"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txtPassword" runat="server" TextMode="Password"></asp:TextBox>
                    </td>
                    <td>
                        <asp:RequiredFieldValidator ID="valPassword" runat="server" 
                            ErrorMessage="Please enter Password" ControlToValidate="txtPassword" 
                            ForeColor="Red" SetFocusOnError="True"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                     <asp:Label ID="lblComfirmPassword" runat="server" Text="Comfirm Password :"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txtComfirmPassword" runat="server" TextMode="Password"></asp:TextBox>
                    </td>
                    <td>
                        <asp:RequiredFieldValidator ID="valComfirmPass" runat="server" 
                            ErrorMessage="Please enter Comfirm Password" ControlToValidate="txtComfirmPassword" 
                            ForeColor="Red" SetFocusOnError="True"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                   <td colspan="3">
                       <asp:CompareValidator ID="cvalComfirmPass" runat="server" 
                           ErrorMessage="Cormfirm Password not match!" ControlToCompare="txtPassword" 
                           ControlToValidate="txtComfirmPassword" Display="Dynamic" ForeColor="Red"></asp:CompareValidator>
                   </td>
                </tr>
                <tr>
                    <td>
                        <asp:Button ID="btnLogin" runat="server" Text="Login" TabIndex="1" />
                        <asp:Button ID="btnReset" runat="server" Text="Reset" 
                            CausesValidation="False" />
                    </td>
                </tr>
            </table>
        </asp:Panel>
    </div>
    </form>
</body>
</html>
